/*
 * Created on 2006-7-3
 */
package msg;

import java.awt.geom.Point2D;

import entity.Cell;

public class Msg_o2s_installQuery extends Message {
	int qid;

	Cell senderCell;
	double v;

	public Msg_o2s_installQuery(int ts, int queryid, Point2D senderLoc,
			double senderSpeed, Cell senderCell) {
		super();
		this.messageType = MessageTypes.o2s_installQuery;
		this.timepoint = ts;
		this.qid = queryid;
		this.msgLoc = senderLoc;
		this.v = senderSpeed;
		this.senderCell = senderCell;
	}

	public String toString() {
		String s;
		s = this.timepoint + " " + this.messageType + " " + this.qid + " "
				+ formatter.format(this.msgLoc.getX()) + " "
				+ formatter.format(this.msgLoc.getY()) + " " + this.v + " "
				+ this.senderCell.x + " " + this.senderCell.y + " ";
		return s;
	}
}
